<?php
include 'model/Usuario.php';
include 'model/Login.php';
include 'controller/Login.php';

if ($_POST)
{
	$controllerLogin = new Controller\Login;
	$controllerLogin->login($_POST['usuario'], $_POST['senha']);

	$controllerLogin->getLogin();
}
?>
<html>
<head>
	<title>Calculadora</title>
	<style>
		input {
			display:block;
			margin: 0 auto;
		}
		fieldset {
			width: 200px;
			margin: 0 auto;
		}
	</style>
</head>
<body>
	<fieldset>
		<h1>Calculadora</h1>
		<form method="post">
			<label>Login<input id="usuario" name="usuario" type="text" /></label>
			
			<label>Senha:<input id="senha" name="senha" type="password" /></label>
			
			<input type="submit" value="Logar" />
		</form>
	</fieldset>
</body>

</html>